
public class ReverseString extends ArrayIndexOutOfBoundsException{

	public void Reverseme(String s){
		/*if(s.length() == 0){
			return "";
		}
		return s.charAt(s.length()-1) + Reverseme(s.substring(0, s.length()-1));*/
		
		if(s == null || s.equals("")){
			return;
		}
		else
		{
			 Reverseme(s.substring(1));
			System.out.print(s.charAt(0));
		}
	}
	
	public static void main(String args[]){
		String str = "abc";
		ReverseString r = new ReverseString();
		r.Reverseme("Hikaru Zhang");
		System.out.print(str.substring(0, 1));
	}
}
